{% import '@Admin/adminFramework/config.html.twig' as config %}
{% import '@Admin/adminFramework/loader/fragment.loader.twig' as loader_fragment %}
<!-- BEGIN SIDEBAR -->
<div id="sidebar" class="nav-collapse collapse">

    <div class="sidebar-toggler hidden-phone"></div>

    <!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->
    <div class="navbar-inverse">
        <form class="navbar-search visible-phone">
            <input type="text" class="search-query" placeholder="Search" />
        </form>
    </div>
    <!-- END RESPONSIVE QUICK SEARCH FORM -->
    <!-- BEGIN SIDEBAR MENU -->
    <ul class="sidebar-menu" style="margin-bottom: 100px">
        {% for item in app.getRequest.query.get('menus') %}
            {% if item.children is defined %}
                {{ loader_fragment.twoMenu(
                    item.title,
                    item.icon,
                    item.children
                ) }}
            {% else %}
                {% if item.url %}
                {{ loader_fragment.oneMenu(item.title, item.icon, item.url, item.tag) }}
                {% endif %}
            {% endif %}
        {% endfor %}
    </ul>


    <!-- END SIDEBAR MENU -->
</div>